<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta content="telephone=no,email=no" name="format-detection">
<meta name="wap-font-scale" content="no">
<title>我的收藏</title>
<!-- 公用样式css -->
<link href="css/base.css" rel="stylesheet" type="text/css" />
<!-- 界面引入css -->
<link href="css/hotel-list.css" rel="stylesheet" type="text/css" />
</head>

<body style="background:#f0f0f0;">
<%-- 	<header class="header">
       <div class="header-left" onclick="_back()"><img class="img-home" src="images/return.png" /></div>
        <div class="header-center word5 ">我的收藏</div>
        <div class="header-right marg4"></div>
    </header> --%>
<div class="main bot60" style="width:100%;padding-left:3%;padding-right:3%">
<c:if test="${not empty holtels}">
	<c:forEach var="hotel" items="${holtels}" varStatus="status">
            <a href="#" onclick="_toDetail('${hotel.HotelKey}');return false;">
                <div class="show-box wor-colour8">
                    <img class="show-img" src="${hotel.PicAddress}" onerror="this.src='images/bjimg4.jpg'"/>
                    <ul class="show-center">
                        <li class="word4">${hotel.HotelName}
                        <c:if test="${hotel.Distance != 'em'}">
                        	<span style="float:right;font-size:12px;">${hotel.Distance}</span>
                        </c:if>
                        </li>
                        <li class="show-star">
                            <div id="starRating">
                                <p class="photo">
                                    <span><i class="high"></i><i <c:if test='${hotel.Grade <1}'>class="nohigh"</c:if>></i></span>
                                    <span><i class="high"></i><i <c:if test='${hotel.Grade <2}'>class="nohigh"</c:if>></i></span>
                                    <span><i class="high"></i><i <c:if test='${hotel.Grade <3}'>class="nohigh"</c:if>></i></span>
                                    <span><i class="high"></i><i <c:if test='${hotel.Grade <4}'>class="nohigh"</c:if>></i></span>
                                    <span><i class="high"></i><i <c:if test='${hotel.Grade <5}'>class="nohigh"</c:if>></i></span>
                                    <span class="starNum">${hotel.Grade}分</span>
                                </p>
                            </div>
                            <div class="show-number"><span class="word6 lin-h wor-colour2">￥${hotel.StartPrice}</span><span class="word3 lin-h">起</span></div>
                        </li>
                    </ul>
                </div>
            </a>
        </c:forEach>
</c:if>
    <c:if test="${empty holtels}"> <img src="<%=basePath%>/images/icon38.png" style="width: 100%"></c:if>
</div>
	<form id="submitForm" action="home/hotelDetails" method="post">
		<input type="hidden" id="hotelKey" name="hotelKey" value="">
		<input type="hidden" id="type" name="type" value="2">
	</form>
<!-- jquery引入 -->
<script type="text/javascript" src="js/jquery/jquery.js"></script>
<script type="text/javascript">
    function _back(){
        window.location.replace('<%=basePath%>member/memberCenter');
    }
    function _toDetail(hotelKey){
        $("#hotelKey").val(hotelKey);
  		$("#submitForm").submit();
    }
 </script> 
</body>
</html>
